package org.price.sql.repo.session.permissions;

import java.security.Permission;

public class ReadPermission extends Permission {

    private static final long serialVersionUID = -4382658238331586855L;

    private static final String READ = "read";

    public ReadPermission() {
        super(READ);
    }

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof ReadPermission) {
            return true;
        }

        return false;
    }

    @Override
    public String getActions() {
        return READ;
    }

    @Override
    public int hashCode() {
        return READ.hashCode();
    }

    @Override
    public boolean implies(Permission p) {
        return false;
    }

}
